<template>
  <footer class="footer">
    <div class="footer-container">
      <div class="footer-content">
        <div class="footer-info">
          <h3>课程学习网站</h3>
          <p>提供高质量的在线学习课程，帮助你提升技能，实现职业发展</p>
        </div>
        <div class="footer-links">
          <h4>快速链接</h4>
          <ul>
            <li><a href="/" @click.prevent="$router.push('/')">首页</a></li>
            <li><a href="/login" @click.prevent="$router.push('/login')">登录</a></li>
            <li><a href="/register" @click.prevent="$router.push('/register')">注册</a></li>
          </ul>
        </div>
        <div class="footer-contact">
          <h4>联系我们</h4>
          <p>邮箱：support@example.com</p>
          <p>电话：400-123-4567</p>
        </div>
      </div>
      <div class="footer-bottom">
        <p>© 2025 课程学习网站 | 数字化成长空间</p>
      </div>
    </div>
  </footer>
</template>

<script>
export default {
  name: 'Footer'
}
</script>

<style scoped>
.footer {
  background-color: #fff;
  padding: 20px 0;
  border-top: 1px solid #e6e6e6;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer-info,
.footer-links,
.footer-contact {
  flex: 1;
  margin-right: 20px;
}

.footer-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #303133;
}

.footer-info p,
.footer-contact p {
  color: #606266;
  font-size: 14px;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #303133;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #606266;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #409eff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.footer-bottom p {
  color: #909399;
  font-size: 14px;
  margin: 0;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-info,
  .footer-links,
  .footer-contact {
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .footer-links ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .footer-links li {
    margin: 0 10px 8px 10px;
  }
}
</style>